/**
 * 
 */
package com.hanhai.zrb.model.common.enums;


public enum AuthEnums {

	LOCATION_AUTH(503,"实地认证"),
	NON_AUTH(502,"实地认证"),
	;
	
	private Integer code;
	
	private String value;
	
	public Integer getCode() {
		return code;
	}

	public String getValue() {
		return value;
	}

	private AuthEnums(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	public static String  getValueByCode(int code){
		for(AuthEnums status:AuthEnums.values()){
			if(status.getCode() == code){
				return status.getValue();
			}
		}
		return null;
	}
	
	public static void main(String[] args) {

		for(AuthEnums status :AuthEnums.values()){
			System.out.println("code="+status.getCode()+ " values = "+status.getValue());
		}
	}
}
